import 'dart:async';

import 'package:camera/camera.dart';
import 'package:flutter/cupertino.dart';

import '../bean/controlBean.dart';
import '../bean/controlEntryBean.dart';
import '../bean/iconDetailBean.dart';

class BasicInfoState {
  bool isComplete=true;
  late double percent=0;
  String proText='';
  bool proState=false;
  bool isAgreeUserPrivary=true;
  late TextEditingController controller;
  late TextEditingController nameController;
  late TextEditingController idCardController;
  late TextEditingController ageController;
  late TextEditingController monthIncomeController;


  List<ControlBean> controlList=[];
  List<ChildData> childData=[];
  List<ChildData> loanTimeList=[];
  List<ChildData> purposeList=[];
  List<ChildData> educationList=[];
  List<ChildData> marryList=[];
  List<ChildData> authFields=[];
  List<ChildData> iouFields=[];
  List<ChildData> assetsFields=[];
  List<ChildData> houseList=[];
  List<ChildData> profession=[];
  IconDetailBean? detailBean;
  String? city='';
  String? province='';
  String? address='';
  String? longitude='';//经度
  String? latitude='';//纬度

  gps? locationGps;
  late List<CameraDescription>? cameras;
  late CameraDescription firstCamera;
  num? amount=0;
  String? name='';
  String? popLinkUrl='';
  bool? isShowName=false;
  bool? isShowIdCard=false;
  bool? isShowAge=false;
  bool? isShowMonthIncome=false;

  late Timer timer;
  int countdownTime = 0;
  bool isBack=false;
  String? agreementName ='';
  String? agreementContent ='';
  String? content='';
  BasicInfoState() {
    locationGps=gps();
     detailBean=IconDetailBean();
    controller=TextEditingController();
    nameController=TextEditingController();
    idCardController=TextEditingController();
    ageController=TextEditingController();
    monthIncomeController=TextEditingController();
  }
}
